import axios from 'axios';
import {Post, Get} from './axiosFun';

/**
 * 用户相关
 * @param params
 * @returns {*|Promise|Promise<unknown>}
 */
//条件查询用户
export const selectUserByCondition = (params) => { return Get("/streetdance/adminUser/selectUserByCondition", params) };
export const updateUserById = (params) => { return Post("/streetdance/adminUser/updateUserById", params) };

/**
 * 视频相关
 * @param params
 * @returns {*|Promise|Promise<unknown>}
 */
export const updateVideo = (params) => { return Post("/streetdance/adminVideo/updateVideo", params) };
export const selectVideoByCondition = (params) => { return Get("/streetdance/adminVideo/selectVideoByCondition", params) };

/**
 * 公告相关
 * @param params
 * @returns {*|Promise|Promise<unknown>}
 */
export const insertArticle = (params) => { return Post("/streetdance/adminArticle/insert", params) };
export const updateArticle = (params) => { return Post("/streetdance/adminArticle/update", params) };
export const selectArticle = (params) => { return Get("/streetdance/adminArticle/selectByCondition", params) };
